package model

import "time"

type Order struct {
	OrderId            string    `orm:"column(order_id);size(64);index;pk;"`
	ThirdPartyId       string    `orm:"column(third_party_id);size(64);"`
	UserId             int       `orm:"column(user_id);type(int);"`
	CollectionIndex    string    `orm:"column(collection_index);size(64);"`
	SubCollectionIndex int       `orm:"column(sub_collection_index);type(int)"`
	TokenId            string    `orm:"column(token_id);size(64)"`
	OrderStatus        string    `orm:"column(order_status);size(32)"`
	CreatedTime        time.Time `orm:"column(created_time);auto_now_add;size(datetime)"`
	ExpireTime         time.Time `orm:"column(expire_time);size(datetime)"`
	PaymentTime        time.Time `orm:"column(payment_time);size(datetime)"`
	Currency           string    `orm:"column(currency);size(10)"`
	Price              float64   `orm:"column(price);digits(17);decimals(2)"`
}
